package com.wyhello.tube4.spring.model;

import java.util.List;

import com.wyhello.tube4.facade.TubeFacade;
import com.wyhello.tube4.pojo.Dictionary;

public class DictionaryRecordsModel {
	private TubeFacade facade;

	public TubeFacade getFacade() {
		return facade;
	}

	public void setFacade(TubeFacade facade) {
		this.facade = facade;
	}
	/**
	 * 保存数据
	 * @param dictionary
	 */
	public void saveDictionary(Dictionary dictionary){
		facade.saveDictionary(dictionary);
	}
	/**
	 * 查询数据
	 * @return
	 */
	public List<Dictionary> queryDictionary(){
		List<Dictionary> Dictionarys = facade.queryDictionary();
		return Dictionarys;
	}
	/**
	 * 删除数据
	 * @param ids
	 * @return
	 */
	public int deleteDictionarys(String ids){
		
		return facade.deleteDictionary(ids);
	}
	
}
